﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GnufBase.h"
#include "GnufComponent.h"
#include "GnufItemEvents.h"

namespace gnuf {

    class ProgressItem;
    class Label;

    class GNUF_BASE_EXPORT BottomToolbar final
        : public Component
        , public IItemEventHandler
    {
    public:
        BottomToolbar();
        ~BottomToolbar();

        static BottomToolbar * get();

        ProgressItem * getProgressItem();
        Label * getText();

    protected:
        // Inherits from Component...
        virtual void initialize(Toolbar *) override;
        virtual gcmp::OwnerPtr<QtToolbar> createQtToolBar(Toolbar*) override;
        // Inherits from IItemEventHandler...
        virtual void onHovered(Item *, bool, void *) override;
    };
    
}
